package cn.zhl.methodrefrence;

import java.util.Arrays;
import java.util.List;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2020-04-22 11:37
 **/
public class MethodRefrenceTest {
	public static void main(String[] args) {
		test1();
	}

	static void test1() {
		List<Integer> ns = Arrays.asList(1, 2, 3, 7, 4, 2, 1, 0);
		ns.sort((a, b) -> a - b);
		System.out.println(ns);
	}
}
